<template>
  <div class="nav">
    <ul>
      <li>
        <i class="icon el-icon-chat-round"></i>
      </li>
      <li>
        <i class="icon el-icon-search"></i>
      </li>
      <li>
        <a href="javascript:void(0);" class="select-bar">选择车辆</a>
      </li>
      <li>
        <i class="icon el-icon-location-outline"></i>
      </li>
      <li title="会员中心">
        <i class="icon el-icon-user" @click="user"></i>
      </li>
    </ul>
  </div>
</template>
<script>
  export default {
    name: "Nav",
    data() {
      return {}
    },
    methods: {
      user() {
        this.$router.push({
          name: "User",
        })
      },
    },
  }
</script>
<style lang="scss">
  .nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 88px;
    z-index: 10;
    text-align: center;
    li {
      display: inline-block;
      cursor: pointer;
    }
    .icon {
      vertical-align: middle;
      margin: 0 17px;
    }
  }
  .select-bar {
    display: block;
    width: 240px;
    height: 84px;
    margin: 0 17px;
    border-radius: 100px;
    line-height: 84px;
    text-align: center;
    color: #fff;
    font-size: 26px;
    font-size: 300;
    background-color: $color-main;
  }
</style>
